package com.tx.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: tcx
 * @description: 用户实体
 * @Date: 2019/11/5
 **/
public class User {
    private Integer uId;//用户id,自增
    private String uNickName;//用户昵称
    private String userName;//用户名
    private String uPassword;//密码
    private String uType;//用户类型（老师、学生）
    private String uImage;//用户头像地址
    private String uEmail;//用户用户邮箱
    private String uSex;//用户性别
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date uCreateTime;//用户注册时间
    private String uSalt;//盐值

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuNickName() {
        return uNickName;
    }

    public void setuNickName(String uNickName) {
        this.uNickName = uNickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword;
    }

    public String getuType() {
        return uType;
    }

    public void setuType(String uType) {
        this.uType = uType;
    }

    public String getuImage() {
        return uImage;
    }

    public void setuImage(String uImage) {
        this.uImage = uImage;
    }

    public Date getuCreateTime() {
        return uCreateTime;
    }

    public void setuCreateTime(Date uCreateTime) {
        this.uCreateTime = uCreateTime;
    }

    public String getuEmail() {
        return uEmail;
    }

    public void setuEmail(String uEmail) {
        this.uEmail = uEmail;
    }

    public String getuSex() {
        return uSex;
    }

    public void setuSex(String uSex) {
        this.uSex = uSex;
    }
    public String getuSalt() {
        return uSalt;
    }

    public void setuSalt(String uSalt) {
        this.uSalt = uSalt;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", uNickName='" + uNickName + '\'' +
                ", userName='" + userName + '\'' +
                ", uPassword='" + uPassword + '\'' +
                ", uType='" + uType + '\'' +
                ", uImage='" + uImage + '\'' +
                ", uEmail='" + uEmail + '\'' +
                ", uSex='" + uSex + '\'' +
                ", uCreateTime=" + uCreateTime +
                ", uSalt='" + uSalt + '\'' +
                '}';
    }
}
